<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<html>
<head>
<title>List Of Properties</title>

</head>
<center>
	<body>
		<h1>Search Form</h1>


		<!--  ---Button area--- -->


		<form id="listproperties" action="/moh/admin/main" method="POST">
			Search: <input type="search" /> <br> <input type="submit"
				value="Search" /> <a href="<c:url value='add' />">Add</a>
			<!--  -- text area--- -->

			<!--  :<input type=text value="test"> -->


			<!--   Text Search:  -->

			<form:input path="textsearch" />


			<br>


			<!-- Table -->
			<h3>Testing List</h3>



			<%--      <c:if test="${!empty props }"> --%>
			<table class="tg" border="1">
				<tr>
					<th width="200">Key</th>
					<th width="250">Value</th>
					<th width="60">Edit</th>
					<th width="60">Delete</th>
				</tr>
				<c:forEach items="${props}" var="prop">
					<tr>
						<td><c:out value="${prop.propertyKey}" /></td>
						<td><c:out value="${prop.propertyValue}" /></td>
						<td><a href="<c:url value='update/${prop}' />">Edit</a></td>
						<td><a href="<c:url value='remove/${prop}' />">Delete</a></td>

					</tr>


				</c:forEach>
			</table>
			<%--      </c:if> --%>



		</form>
		<center>
	</body>
</html>S